import {
  defineConfig
} from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'


// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue(),

  ],
  resolve: {
    alias: {
      '@': path.resolve(__dirname, './src'),
      '@img': path.resolve(__dirname, './src/assets/images')
    }
  },
  base: "./",
  outDir: "dist",
  server: {
    // host: '192.168.1.9',
    open: true // 设置服务启动时是否自动打开浏览器
  }
})